package com.qf.springboot1205.service.impl;

import com.qf.springboot1205.bean.Student;
import com.qf.springboot1205.dao.StudentDao;
import com.qf.springboot1205.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * IntelliJ IDEA -> springboot1205
 * 2019/12/5 20:21
 *
 * @author zmyao
 * 别看，我是渣渣。
 */
@Service
public class StudentServiceImpl implements StudentService {
@Autowired
private StudentDao studentDao;
    @Override
    public List<Student> findStudents() {
        return studentDao.findAll();
    }
}
